package com.nercel.dsj.gksales.model.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 角色
 */
@Data
@ApiModel(value = "角色")
@JsonIgnoreProperties(value = {"handler"})
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "标识")
    private String role;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "权限")
    private List<Permission> permissions;

}
